package com.JHC.mmall.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;

public enum GenderEnum {
     /**
     *   题目：以code,value形式0为女，1为男
      *  要求：写出对应的有参，无参构造，set,get方法，补充性别为男的实例
     */
     WOMAN(0,"女"),MAN(1,"男");

     @EnumValue
     private Integer code;
     private String value;

     GenderEnum(int i, String 女) {
     }

     GenderEnum(Integer code, String value) {
          this.code = code;
          this.value = value;
     }

     GenderEnum() {
     }

     public Integer getCode() {
          return code;
     }

     public void setCode(Integer code) {
          this.code = code;
     }

     public String getValue() {
          return value;
     }

     public void setValue(String value) {
          this.value = value;
     }
}
